﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BusinessCommon.Utilities;
using BusinessCommon.DTO;

namespace StoreWinform.View
{
    public partial class MenuForm : Form
    {
        public MenuForm()
        {
            InitializeComponent();
            UserDto userDto = (UserDto)SessionUtilites.GetSession(SessionUtilites.SESSION_KEY);
            txtUserName.Text = userDto.Name;
        }

        private void MenuForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            Application.Exit();
        }
    }
}
